/** 
 * Project Name:qfhy 
 * File Name:User.java 
 * Package Name:com.wf.qfhy.entity 
 * Date:2017年4月26日上午10:53:39 
 * Copyright (c) 2017, wxwj All Rights Reserved. 
 */

package com.wf.qfhy.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: User
 * @Description:
 * @author 王飞
 * @date 2017年4月26日 上午10:53:39
 * 
 */
@Entity
@Table(name = "SYS_USER")
public class User {

	/**
	 * @Title: User
	 * @Description:
	 * @return
	 */

	public User() {
		super();
	}

	/**
	 * @Title: User
	 * @Description:
	 * @param id
	 * @param userName
	 * @param passWord
	 * @param realName
	 * @param nickName
	 * @param age
	 * @param sex
	 * @return
	 */

	public User(String userName, String passWord, String realName, String nickName, String email, Integer age, Integer sex, Boolean isLock) {
		super();
		this.userName = userName;
		this.passWord = passWord;
		this.realName = realName;
		this.nickName = nickName;
		this.email = email;
		this.age = age;
		this.sex = sex;
		this.isLock = isLock;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private Integer id;

	@Column(name = "userName", length = 32)
	private String userName;

	@Column(name = "passWord", length = 32)
	private String passWord;

	@Column(name = "realName", length = 32)
	private String realName;

	@Column(name = "nickName", length = 32)
	private String nickName;

	@Column(name = "email", length = 32)
	private String email;

	@Column(name = "age")
	private Integer age;

	@Column(name = "sex")
	private Integer sex;
	@Column(name = "isLock")
	private Boolean isLock;

	/**
	 * @return the id
	 */

	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the userName
	 */

	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 *            the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the passWord
	 */

	public String getPassWord() {
		return passWord;
	}

	/**
	 * @param passWord
	 *            the passWord to set
	 */
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	/**
	 * @return the realName
	 */

	public String getRealName() {
		return realName;
	}

	/**
	 * @param realName
	 *            the realName to set
	 */
	public void setRealName(String realName) {
		this.realName = realName;
	}

	/**
	 * @return the nickName
	 */

	public String getNickName() {
		return nickName;
	}

	/**
	 * @param nickName
	 *            the nickName to set
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the age
	 */

	public Integer getAge() {
		return age;
	}

	/**
	 * @param age
	 *            the age to set
	 */
	public void setAge(Integer age) {
		this.age = age;
	}

	/**
	 * @return the sex
	 */

	public Integer getSex() {
		return sex;
	}

	/**
	 * @param sex
	 *            the sex to set
	 */
	public void setSex(Integer sex) {
		this.sex = sex;
	}

	/**
	 * @return the isLock
	 */
	public Boolean getIsLock() {
		return isLock;
	}

	/**
	 * @param isLock
	 *            the isLock to set
	 */
	public void setIsLock(Boolean isLock) {
		this.isLock = isLock;
	}

}
